//
//  PYCHZInspectorController.h
//  PinyinContacts
//
//  Created by Xiaoping Zhang on 2/20/10.
//  Copyright 2010 Filters, Inc. All rights reserved.
//

#import <Cocoa/Cocoa.h>


@interface PYCHZInspectorController : NSWindowController 
{
	IBOutlet NSTableView *tableView;
	IBOutlet NSProgressIndicator *progressIndicator;
	IBOutlet NSView *searchView;
	IBOutlet NSView *progressView;
	IBOutlet NSSearchField *searchField;
	
	NSMutableArray *unfilteredContent;
	NSMutableArray *filteredContent;
	
	NSManagedObjectContext *hzPYDBContext;

	NSThread *retrievingThread;
	
	BOOL isPopulated;
}

@property(readwrite, retain) NSManagedObjectContext* hzPYDBContext;
@property(readwrite, retain) NSMutableArray *unfilteredContent;
@property(readwrite, retain) NSMutableArray *filteredContent;

- (id) initWithObjectContext:(NSManagedObjectContext *)objectContext;
- (NSArray *)retrieveAllCharacters;

- (IBAction) updateInpectingResult:(id)sender;
- (IBAction) cancelInspecting:(id)sender;
- (IBAction) deleteItems:(id)sender;

@end
